import request from '@/utils/request'

// 查询专业课程下的学生成绩信息
export function scoreDetail(id) {
  return request({
    url: '/course/score/detail/' + id,
    method: 'get'
  })
}

// 学生查询课程成绩信息
export function stuScoreDetail() {
  return request({
    url: '/course/score/stuScoreDetail',
    method: 'get'
  })
}



// 查询学生课程成绩列表
export function listScore(query) {
  return request({
    url: '/course/score/list',
    method: 'get',
    params: query
  })
}

// 查询学生课程成绩详细
export function getScore(id) {
  return request({
    url: '/course/score/' + id,
    method: 'get'
  })
}

// 新增学生课程成绩
export function addScore(data) {
  return request({
    url: '/course/score',
    method: 'post',
    data: data
  })
}

// 修改学生课程成绩
export function updateScore(data) {
  return request({
    url: '/course/score',
    method: 'put',
    data: data
  })
}

// 删除学生课程成绩
export function delScore(id) {
  return request({
    url: '/course/score/' + id,
    method: 'delete'
  })
}
